package com.edu.shop.service;

import com.edu.shp.entity.User;

public interface UserService {
    /**
     * 注册
     * @param user
     * @return
     */
    int register(User user);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    User findById(Integer id);
}
